package com.mingyuan.library.infra.lending.book.exception;


import com.mingyuan.library.domain.common.enums.CommonExceptionCodeEnum;
import com.mingyuan.library.domain.common.exception.BusinessException;

/**
 * 数据不存在异常
 * @author yangzk
 * @version 1.0.0
 * @date 2022.11.06 11:50
 */
public class DataNotFoundException extends BusinessException {

    private static final long serialVersionUID = -5741034742997232690L;

    public DataNotFoundException() {
        super(CommonExceptionCodeEnum.NOT_FOUND);
    }

    public DataNotFoundException(String message) {
        super(CommonExceptionCodeEnum.NOT_FOUND.getErrCode(), message);
    }

    public DataNotFoundException(Throwable cause) {
        super(CommonExceptionCodeEnum.NOT_FOUND, cause);
    }

    public DataNotFoundException(String message, Throwable cause) {
        super(CommonExceptionCodeEnum.NOT_FOUND.getErrCode(), message, cause);
    }

}